package com.flyone.fuxiao.utils;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

/**
 * @program: text-to-picture
 * @ClassName: JsonUtils
 * @description: Json工具类
 * @author: banyun
 * @create: 2024-04-01 11:25
 */
public class JsonUtils {
    public static String toJson(Object obj) {
        Gson gson = new GsonBuilder()
                .setPrettyPrinting()
                .disableHtmlEscaping()
                .create();
        return gson.toJson(obj);
    }
}

